package com.tarena.lbs.activity.dao.mapper;


import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.tarena.lbs.activity.pojo.po.ActivityPO;
import com.tarena.lbs.activity.pojo.query.ActivityQuery;
import com.tarena.lbs.activity.pojo.vo.ActivityVO;
import org.apache.ibatis.annotations.Mapper;

import java.util.List;

@Mapper
public interface ActivityMapper extends BaseMapper<ActivityPO> {

    ActivityVO selectByActivityId(Integer id);

    List<ActivityVO> select();

    void updateActivityStatus(ActivityPO activity);

    void deleteActivity(Integer id);

    void insertActivity(ActivityPO activity);

    List<ActivityVO> selectActivity(ActivityQuery query);
}
